package com.cloudbroker.bcs.platform.ltb.middle.service.base;

import com.cloudbroker.bcs.common.entity.Markable;
import com.cloudbroker.bcs.common.entity.Pageable;
import com.cloudbroker.bcs.common.service.base.ServiceImplBase;
import com.cloudbroker.bcs.platform.ltb.common.config.ConfigValues;

public abstract class MycatServiceImplBase<T extends Pageable, K> extends ServiceImplBase<T, K> {
    
    public void save(T entity) {
        if (entity instanceof Markable) {
            Markable markable = (Markable) entity;
            markable.setMycat_flag(ConfigValues.getMycatFlag());
        }
        super.save(entity);
    }
    
}
